package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.vo.BillAddressVO;
import org.csu.mypetstore.api.vo.CartVO;
import org.csu.mypetstore.api.vo.OrderVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrderService {
   CommonResponse<OrderVO> generateOrder(
           String shipAddr1,
           String shipAddr2,
           String shipCity,
           String shipState,
           String shipZip,
           String shipCountry,
           String billAddr1,
           String billAddr2,
           String billCity,
           String billState,
           String billZip,
           String billCountry,
           String courier,
           String billtofirstname,
           String billtolastname,
           String shiptofirstname,
           String shiptolastname,
           String creditcard,
           String cardtype,
           String locale,
           String expiryDate,
           String userid,
           HttpSession session
   );

   CommonResponse<List<OrderVO>> viewOrders(HttpSession session);
}
